ip=192.168.1.224
net=pub_net
if [ -n "$1" ];then
	ip=$1
fi

if [ ! "$(ping $ip -c 1 | grep Unreachable)" ];then
	echo $ip is used
else
	echo set up ip : $ip
	docker run --net=$net --ip=$ip --rm -ti --name proxyserver -p 22222:22  proxyserver:14.04
fi
